;; -*- scheme -*- Copyright © 2001--2021 GNUnet e.V.
;; SPDX-License-Identifier: AGPL-3.0-or-later

;; * CORE message types
(value
 (symbol msg:core:init!)
 (documentation "Initial setup message from core client to core.")
 (index 64))
(value
 (symbol msg:core:init-reply)
 (documentation "Response from core to core client to INIT message.")
 (index 65))
msg:66
(value
 (symbol msg:core:notify:connect)
 (documentation
  "Notify clients about new peer-to-peer connections
(triggered after key exchange).")
 (index 67))
(value
 (symbol msg:core:notify:disconnect)
 (documentation "Notify clients about peer disconnecting.")
 (index 68))
(value
 (symbol msg:core:notify:status-change)
 (documentation "Notify clients about peer status change.")
 (index 69))
(value
 (symbol msg:core:notify:inbound)
 (documentation "Notify clients about incoming P2P messages.")
 (index 70))
(value
 (symbol msg:core:notify:outbound)
 (documentation "Notify clients about outgoing P2P transmissions.")
 (index 71))
msg:72 msg:73
(value
 (symbol msg:core:send:request)
 (documentation "Request from client to transmit message.")
 (index 74))
(value
 (symbol msg:core:send:ready)
 (documentation "Confirmation from core that message can now be sent")
 (index 75))
;; FIXME unclear description
(value
 (symbol msg:core:send)
 (documentation "Client with message to transmit (after msg:core:send:ready
confirmation was received).")
 (index 76))
msg:77
;; Request for connection monitoring from CORE service.
msg:core:monitor:peers
(value
 (symbol msg:core:monitor:notify)
 (documentation "Reply for monitor by CORE service.")
 (index 79))
msg:80 msg:81
(value
 (symbol msg:core:encrypted-message)
 (documentation "Encapsulation for an encrypted message between peers.")
 (index 82))
(value
 (symbol msg:core:ping)
 (documentation "Check that other peer is alve (challenge).")
 (index 83))
(value
 (symbol msg:core:pong)
 (documentation "Confirmation that other peer is alive.")
 (index 84))
(value
 (symbol msg:core:hangup)
 (documentation "Request by the other peer to terminate the connection")
 (index 85))
(value
 (symbol msg:core:compressed-type-map)
 (documentation "gzip-compressed type map of the sender")
 (index 86))
(value
 (symbol msg:core:binary-type-map)
 (documentation "Uncompressed type map of the sender")
 (index 87))
(value
 (symbol msg:core:ephemeral-key)
 (documentation "Session key exchange between peers.")
 (index 88))
(value
 (symbol msg:core:confirm-type-map)
 (documentation "Other peer confirms having received the type map.")
 (index 89))
